﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SOWY.common
{
    class Command
    {
        public string taskName { get; set; }
        public string CRUD { get; set; }
        public DateTime startDate { get; set; }
        public DateTime endDate { get; set; }
        public string[] parameter { get; set; }
        public string[] newValue { get; set; }

        public Command(string crud)
        {
            this.CRUD = crud;
        }
        public Command(string task, string crud, DateTime start, DateTime end)
        {
            taskName = task;
            CRUD = crud;
            startDate = start;
            endDate = end;
        }
        public Command(string task, string crud, DateTime start, DateTime end, string[] para, string[] value)
        {
            taskName = task;
            CRUD = crud;
            startDate = start;
            endDate = end;
            parameter = para;
            newValue = value;
        }
    }
}
